import 'package:json_annotation/json_annotation.dart';

part 'test_post_response.g.dart';

@JsonSerializable(explicitToJson: true, anyMap: true)
class TestPostResponse {
  final String title;
  final String body;
  final int userId;
  final int id;

  TestPostResponse(this.title, this.body, this.userId, this.id);

  factory TestPostResponse.fromJson(Map<String, dynamic> json) =>
      _$TestPostResponseFromJson(json);

  Map<String, dynamic> toJson() => _$TestPostResponseToJson(this);
}
